#ifndef CLOADMAP_H_
#define CLOADMAP_H_
#include <fstream>
#include <vector>
struct Mappy
{
	// X position in Tile Space
	int nX;
	// Y position in Tile Space
	int nY;
	// bool to tell if the tile is collidable
	bool bCollidable;
	// Check if this tile is the start of a noodle
	bool bStart;
	// check to see if there is a collectable on the tile
	bool bCollect;
	// One less than the total number of tiles long a noodle extends
	int nExtend;
	// Is the noodle vertical or horizontal?
	bool bHorizontal;
};

class CLoadMap
{
	std::vector<std::vector<Mappy>> m_vValidMaps;
	std::vector<int> m_nWidths;
	std::vector<int> m_nHeights;
	unsigned int m_unCurrentMapIndex;

public:
	
	inline const std::vector<std::vector<Mappy>>& GetMaps(void) const {return m_vValidMaps;}
	inline const std::vector<int>& GetWidths(void) const {return m_nWidths;}
	inline const std::vector<int>& GetHeights(void) const {return m_nHeights;}

	CLoadMap();
	~CLoadMap();

	bool readBinFile(char * szFile);

};
#endif